><

KeyCompare



The KeyCompare action from the Specials submenu of the Action menu launches an action when the viewer hits a selected key. This action is designed for use with the Idle action, which goes into the head section of the page because it must load ahead of the visible page content. You can use this action, for example, to simulate Windows-style access keys for objects on your page.

To set up a KeyCompare action:

1 Drag the Head Action icon from the Smart tab () of the Objects palette into the head section of the page.

2 In the Action Inspector, choose Idle from the Specials submenu of the first Action menu.

3 Click the Condition tab, and choose KeyCompare from the Specials submenu of the second Actions menu.

4 Enter the ASCII character code that corresponds to the desired keystroke in the CharCode text box.

5 Click the True tab and choose the action you want the keystroke to trigger.

6 Return to the page and add a visual hint for the viewer, for example an instruction such as "Press K".

Important: Do not specify an action on the False tab. A keystroke is a single event whose absence need not--and must not--be monitored.


Using Actions > Using Adobe GoLive actions > KeyCompare